package data;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *
 * @author Michal Hanzlik, Tomas Jiran
 */
/*
 create table Serial (
 id_filmu             INT4                 not null,
 pocet_serii          INT4                 null,
 pocet_dilu           INT4                 null,
 constraint PK_SERIAL primary key (id_filmu)
 );
 */
@Entity
@Table(name = "serial")
@DiscriminatorValue("SERIAL")
public class Serial extends Film {
    /**
     * pocet_serii INT4 null,
     */
    @Column()
    private int pocet_serii;

    /**
     * pocet_dilu INT4 null,
     */
    @Column()
    private int pocet_dilu;

    public Serial() {
    }

    public Serial(int ID, String nazev, int rok) {
        super(ID, nazev, rok);
    }

    public int getPocet_dilu() {
        return pocet_dilu;
    }
    
    public void setPocet_dilu(int pocet_dilu) {
        this.pocet_dilu = pocet_dilu;
    }

    public int getPocet_serii() {
        return pocet_serii;
    }

    public void setPocet_serii(int pocet_serii) {
        this.pocet_serii = pocet_serii;
    }
}